home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
monitory
/
amyload
/
closeloadwindow.c
< prev
next >
Wrap
C/C++ Source or Header
|
1987-11-15
|
976b
|
34 lines
#include <intuition/intuition.h>
#include <devices/load.h>
#include "execdef.h"
#include "intuidef.h"
#include "windownode.h"
#include "windowinfo.h"
#include "loadrecord.h"
#include "CloseLoadWindow.proto"
#include <exec/proto.h>
#include <intuition/proto.h>
void
CloseLoadWindow(windownode)
WindowNode *windownode;
{
LoadRecord *record, *oldrecord;
Remove(&windownode->node);
for (record = (LoadRecord *)WINDOWINFO(windownode->window)->loadrecords.mlh_Head;
record->node.mln_Succ; )
{
FreeMem((char *)record->start_data, (record->end_data - record->start_data) * sizeof(LoadDataValue));
oldrecord = record;
record = (LoadRecord *)record->node.mln_Succ;
FreeMem((char *)oldrecord, sizeof(LoadRecord));
}
FreeMem((char *)WINDOWINFO(windownode->window), sizeof(WindowInfo));
windownode->window->UserPort = NULL;
CloseWindow(windownode->window);
FreeMem((char *)windownode, sizeof(WindowNode));
}